package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuaHao
 * @since 2019-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order")
public class Order extends Model<Order> {

    private static final long serialVersionUID=1L;

    private String id;

    private String orderId;

    private String orderType;

    private String productId;

    private String customId;

    private String payType;

    private Double money;

    private String dealTime;

    private Integer number;

    private String orderStatus;

    private String explains;

    private String operator;

    private String productPlanNo;

    private String productLineId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date productPlanTime;


    private Date productPlanOvertime;

    private String remark;

    private String productStatus;

    private String printer;

    private String supplierId;

    private String productTime;

    private String orderHolder;

    private String laserCode;

    @TableField(exist = false)
    private String pName;

    @TableField(exist = false)
    private String companyName;

    @TableField(exist = false)
    private Integer productionCapacity;

    @TableField(exist = false)
    private Product product;

    @TableField(exist = false)
    private Vehicle vehicle;

    @TableField(exist = false)
    private Driver driver;
    @TableField(exist = false)
    private Shipping shipping;

    @TableField(exist = false)
    private ProductionLine productionLine;

    private String shippingDate;

    private String shippingMethodId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
